package com.cheetah.entity;

import com.cheetah.constants.MessageTypeEnums;
import com.cheetah.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @Author Administrator
 * @Date 2020/9/2
 * @Version V1.0
 * @Description:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message extends BaseEntity {

    private long id; //消息id

    private String sender; //发送人

    private String content; //消息内容

    private MessageTypeEnums type; //消息类型

    private Map<String,String> extra; //消息扩展内容

}
